﻿using System;

namespace OTE.Infrastructure.Extensions
{
    public static class ConverterExtension
    {
        public static int ToInterger(this string input)
        {
            var output = -1;
            try
            {
                Int32.TryParse(input, out output);

                return output;
            }
            catch (Exception)
            {
                return output;
            }
        }
    }
}